<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test API</title>
</head>
<body>
    <script src="./libs/jquery-3.1.1.js"></script>
    <script>
        var token = "token f64c32f8a963fbc941722743ad0ef3c194c10eae";
        var filename = "hh.txt";


        var gistBody = {
          "body": "{'score': '1', 'time':'12'}"
        };

        
        
        $.ajax({
            type: "post",
            url: "https://api.github.com/gists/b470c7c14d909cc82f6acfa815e47b2f/comments",
            headers: {
                Authorization: token,
            },
            dataType: "json",
            data: JSON.stringify(gistBody),
        });
    </script>
</body>
</html>